package com.whg.demo.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * @Author whg
 * @create 2022/12/2 16:40
 * @description：
 */
@WebListener
public class ContextListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("==========contextInitialized=========");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("==========contextDestroyed=========");
    }
}
